PATHMac OS 8 and 9 Developer Documentation > Interapplication Communication > AppleScript for Scripters >

AppleScript Language Guide

   

Arithmetic Constants

AppleScript supplies several real and integer constants you can use in arithmetic calculations:

The arithmetic constant 3.14159265359. Described Table A-3.

set circleArea to pi * 7 --result: 21.991148575129

The number of seconds, respectively, in a minute, hour, day, and week. You use these constants when working with dates and times. See also Date, Date and Time Constants, and Date-Time Arithmetic.

date "September 13, 1998" + 4 * days + 3 * hours + 2 * minutes
--result: date "Thursday, September 17, 1998 3:02:00 AM"

© 1999 Apple Computer, Inc. – (Last Updated 21 May 99)